package dev.ece.suit.loader.models.dae;

import dev.ece.suit.loader.Face;

public class DAETriangle extends Face {

	public final static int SIZE = 3;
	
	private int[] normalIndice = new int[SIZE];
	
	private int[] textureCoordindice = new int[SIZE];
	
	public DAETriangle() {
		super(new int[SIZE]);
	}

	public void fillMesh(DAEMesh mesh, DAETriangles triangels) {
		for(int i=0; i<SIZE; i++) {
			mesh.getVertice().add(triangels.getVertice()[this.getIndice()[i]]);
			mesh.getBoneindice().add(triangels.getBones()[this.getIndice()[i]]);
			mesh.getWeights().add(triangels.getWeights()[this.getIndice()[i]]);
			mesh.getNormals().add(triangels.getNormals()[this.getNormalIndice()[i]]);
			mesh.getTextureCoords().add(triangels.getTextureCoords()[this.getTextureCoordindice()[i]]);
		}
	}
	
	public int[] getNormalIndice() {
		return normalIndice;
	}

	public void setNormalIndice(int[] normalIndice) {
		this.normalIndice = normalIndice;
	}

	public int[] getTextureCoordindice() {
		return textureCoordindice;
	}

	public void setTextureCoordindice(int[] textureCoordindice) {
		this.textureCoordindice = textureCoordindice;
	}

}
